<html>
<head><meta charset="utf-8"><title>LSP extensions · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html">LSP extensions</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="198668853"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/198668853" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#198668853">(May 25 2020 at 13:29)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> isn't the documentation missing inlay hints? and runnables?</p>



<a name="198668987"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/198668987" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#198668987">(May 25 2020 at 13:30)</a>:</h4>
<p>Yup, and parent modules</p>



<a name="198669016"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/198669016" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#198669016">(May 25 2020 at 13:30)</a>:</h4>
<p>just asking because the changelog says "all" ;)</p>



<a name="198669025"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/198669025" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#198669025">(May 25 2020 at 13:30)</a>:</h4>
<p>I want to finish those tomorrow</p>



<a name="198669031"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/198669031" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#198669031">(May 25 2020 at 13:30)</a>:</h4>
<p>That's changelog for Tuesday :P</p>



<a name="198669222"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/198669222" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#198669222">(May 25 2020 at 13:32)</a>:</h4>
<p>(Also, sorry for breaking existing emacs command by rearranging some not-so-siginificant details. My hypothesis is that getting rid of <code>rust-analyzer</code> specific prefixes, and just trying to make proper protocol extensions would lead to a better ecosystem long term)</p>



<a name="198669903"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/198669903" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#198669903">(May 25 2020 at 13:40)</a>:</h4>
<p>yeah, I'm kind of waiting for you to be done to fix all the emacs stuff ;)</p>



<a name="200596668"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/200596668" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Chetan Khilosiya <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#200596668">(Jun 11 2020 at 19:51)</a>:</h4>
<p>Hi, I am trying to debug lsp extension and after following guild in dubugging.md I am facing issue of "Ignored breakpoint because generated code not found". I have updated the launch.json file to add node_modules js files in outFiles. Then only facing issue.<br>
How to solve this issue?</p>



<a name="200597199"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/200597199" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Chetan Khilosiya <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#200597199">(Jun 11 2020 at 19:54)</a>:</h4>
<p>I am adding debug point in on_task() function.</p>



<a name="200669728"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/200669728" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Chetan Khilosiya <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#200669728">(Jun 12 2020 at 13:29)</a>:</h4>
<p>I provided --sourceMap to npm build script in package.json, still it is not working. Any suggestions how to get debug point in <a href="http://main_loop.rs">main_loop.rs</a> on_task() function?<br>
I had already added<br>
"lldb.adapterEnv": {<br>
        "lldb.adapterType": "native",<br>
},<br>
in rust analyzer settings.json file.</p>



<a name="200690271"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/200690271" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> vsrs <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#200690271">(Jun 12 2020 at 16:11)</a>:</h4>
<p>Did you change Cargo.toml ?</p>
<div class="codehilite"><pre><span></span><code>[profile.dev]
debug = 2 # default is 0
</code></pre></div>



<a name="200828411"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/200828411" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Chetan Khilosiya <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#200828411">(Jun 14 2020 at 18:46)</a>:</h4>
<p>Thank for the reply <span class="user-mention" data-user-id="298653">@vsrs</span> .<br>
Yes, I did that in crates/rust-analyzer/cargo.toml file and then build the project.<br>
Is this file is right, or am I suppose to update any other file?<br>
Also I have added those lines at the end of file. As in that file there was no existing entry for dev profile.</p>



<a name="200829099"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/200829099" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Chetan Khilosiya <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#200829099">(Jun 14 2020 at 19:05)</a>:</h4>
<p>After searching profile.dev in project files, I updated the workspace cargo.toml file with dev = 2. Then also no luck.<br>
I have attached debugger to rust-analyzer server also.</p>



<a name="201400708"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/201400708" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Chetan Khilosiya <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#201400708">(Jun 19 2020 at 14:54)</a>:</h4>
<p>Any suggestions on this?</p>



<a name="202182786"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/LSP%20extensions/near/202182786" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Chetan Khilosiya <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/LSP.20extensions.html#202182786">(Jun 27 2020 at 12:00)</a>:</h4>
<p>Go the debugging working. The solution is first run Run extension (Debug) and then attach server. while selecting rust analyzer server select debug path of rust analyzer. Hope this helps, if anyone is facing same issue.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>